﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace CustomerUI
{
    /// <summary>
    /// Interaction logic for SelectScheduleType.xaml
    /// </summary>
    public partial class SelectScheduleType : Window
    {
        public SelectScheduleType()
        {
            InitializeComponent();
        }
        
        private void Window_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
            DragMove();
        }

        private void Click_Confirm(object sender, RoutedEventArgs e)
        {
            this.Close();
            (DataContext as TinyCinema.Bussiness.Schedule.Schedule).DealDeskRefresh();
            (new SelectDeskDiagram()).ShowDialog();
            
        }

        private void Click_Cancel(object sender, RoutedEventArgs e)
        {
            MainWindow.pageDetailUI.blurEffect.Radius = 0;
            this.Close();
        }
    }
}
